package com.lab.logback;

import org.junit.jupiter.api.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.concurrent.TimeUnit;

@SpringBootTest
public class LogPolicyTestCase {

    private static final Logger logger = LoggerFactory.getLogger(LogPolicyTestCase.class);

    @Test
    public void testLog() throws InterruptedException {
        int i = 0;
        while (true) {
            logger.debug("abcdabcddddddddddddddddddddd" + i++);
            TimeUnit.SECONDS.sleep(1);
        }
    }

}
